#include "PreGraphic.h"
#include "Texture.h"

Texture::Texture(void):mTexture(NULL)
{
}

Texture::~Texture(void)
{
}

bool Texture::create(const String & fileName,IDirect3DDevice9* device)
{
	D3DXCreateTextureFromFile(device,fileName.c_str(),&mTexture);
	return mTexture!=NULL;
}

IDirect3DTexture9* Texture::getD3DTexture()
{
	return mTexture;
}